package com.sample.tdf.sample.api;

import cn.com.taiji.common.dto.PageDTO;
import cn.com.taiji.common.dto.ResultDTO;
import cn.com.taiji.common.exception.BaseException;
import com.sample.tdf.sample.dto.ScoreWithNamesDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 太极计算机股份有限公司
 * @since 2020-04-07
 */
@Api(tags ="课程学生得分接口")
@RestController
@RequestMapping("/sample/course-student-score")
public class CourseStudentScoreController {

    @ApiOperation(value = "根据学生Id查询课程列表", notes = "根据学生Id查询课程列表")
    @GetMapping("/getCourseByStudentId")
    public ResultDTO getCourseByStudentId(String studentId) throws BaseException {
        return null;
    }

    @ApiOperation(value = "根据课程Id查询学生列表", notes = "根据课程Id查询学生列表")
    @GetMapping("/getStudentByCourseId")
    public ResultDTO getStudentByCourseId(String courseId) throws BaseException {
        return null;
    }
    @ApiOperation(value = "Mybatis多表关联动态分页查询示例，分页查询分数，包含课程名称和学生名称等")
    @PostMapping(value = "/query")
    @Valid
    public ResultDTO findScoreWithNamesPageable(@RequestBody PageDTO<ScoreWithNamesDTO> pageDTO) throws BaseException {
        return null;
    }
}

